---
layout: "default"
title: "_RawOptionSetType"
description: "Swift documentation for '_RawOptionSetType': This protocol is an implementation detail of RawOptionSetType; do."
keywords: "_RawOptionSetType,protocol,swift,documentation,==,rawValue,RawValue"
root: "/v1.2"
---

<div class="intro-declaration"><code class="language-swift">protocol _RawOptionSetType</code></div>

<div class="discussion comment">
    <p>This protocol is an implementation detail of <code>RawOptionSetType</code>; do
not use it directly.</p>

<p>Its requirements are inherited by <code>RawOptionSetType</code> and thus must
be satisfied by types conforming to that protocol.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">Equatable, RawRepresentable</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>

<tr>
<th id="aliases">Associated Types</th>
<td>
<span id="aliasesmark"></span>
<div class="declaration">
<code class="language-swift">RawValue : BitwiseOperationsType, Equatable</code>
</div>
</td>
</tr>


<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>


<h3>Initializers</h3>
<div class="declaration" id="init-rawvalue_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init-rawvalue_">init(<wbr>rawValue:)</a> <span class="required">Required</span><div class="comment collapse" id="comment-init-rawvalue_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">init(rawValue: RawValue)</code>

        <h4>Declared In</h4>
            <a href="../../protocol/_RawOptionSetType/"><code>_RawOptionSetType</code></a>
        ,    <a href="../../protocol/RawRepresentable/"><code>RawRepresentable</code></a>
        </div></div>
</div>


<h3>Instance Variables</h3>
<div class="declaration inherited" id="var-rawvalue_-rawvalue">
<a class="toggle-link" data-toggle="collapse" href="#comment-var-rawvalue_-rawvalue">var rawValue: RawValue</a> <span class="required">Required</span><div class="comment collapse" id="comment-var-rawvalue_-rawvalue"><div class="p">
    <p>The corresponding value of the &quot;raw&quot; type.</p>

<p><code>Self(rawValue: self.rawValue)!</code> is equivalent to <code>self</code>.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">var rawValue: RawValue { get }</code>

        <h4>Declared In</h4>
            <a href="../../protocol/RawRepresentable/"><code>RawRepresentable</code></a>
        </div></div>
</div>



<h3>Instance Methods</h3>
<div class="declaration inherited" id="func-eqeq_rhs_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-eqeq_rhs_">func ==(<wbr>_:<wbr>rhs:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-eqeq_rhs_"><div class="p">
    <p>Return true if <code>lhs</code> is equal to <code>rhs</code>.</p>

<p><strong>Equality implies substitutability</strong>.  When <code>x == y</code>, <code>x</code> and
<code>y</code> are interchangeable in any code that only depends on their
values.</p>

<p>Class instance identity as distinguished by triple-equals <code>===</code>
is notably not part of an instance&#39;s value.  Exposing other
non-value aspects of <code>Equatable</code> types is discouraged, and any
that <em>are</em> exposed should be explicitly pointed out in
documentation.</p>

<p><strong>Equality is an equivalence relation</strong></p>

<ul><li><code>x == x</code> is <code>true</code></li><li><code>x == y</code> implies <code>y == x</code></li><li><code>x == y</code> and <code>y == z</code> implies <code>x == z</code></li></ul>

<p><strong>Inequality is the inverse of equality</strong>, i.e. <code>!(x == y)</code> iff
<code>x != y</code></p>

    <h4>Declaration</h4>    
    <code class="language-swift">func ==(lhs: Self, rhs: Self) -&gt; Bool</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/Equatable/"><code>Equatable</code></a>    
</div></div>
</div>


